package com.sslite.dao;

import java.io.FileInputStream;
import java.util.Properties;

import com.sslite.util.SSLiteProperties;

public class SingletonLostReportDataDao {
	private static SingletonLostReportDataDao instance = new SingletonLostReportDataDao();

	private Properties properties = new Properties();
	
	private SingletonLostReportDataDao(){
		try{
			properties.load( new FileInputStream( SSLiteProperties.LOST_REPORT_DATA_FILE_TO_BE_DELETED_AFTER_AUG_2014.getValue() ) );
		}
		catch(Exception e){
			System.out.println( "Could not load lost.report data file: " +e.getMessage() );
			e.printStackTrace();
		}
	}
	
	public static SingletonLostReportDataDao getInstance(){
		return instance;
	}
	
	public String getProperty(String key){
		return properties.getProperty(key);
	}
}
